# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-widget-tweaks
pkgver=1.4.12
pkgrel=3
pkgdesc="Tweak the form field rendering in templates, not in python-level form definitions"
url="https://github.com/jazzband/django-widget-tweaks"
arch="noarch"
license="MIT"
depends="py3-django"
makedepends="py3-setuptools py3-setuptools_scm"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/django-widget-tweaks/django-widget-tweaks-$pkgver.tar.gz"
builddir="$srcdir/django-widget-tweaks-$pkgver"
replaces="py-django-widget-tweaks" # Backwards compatibility
provides="py-django-widget-tweaks=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=. django-admin test --settings tests.settings
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
201944c8ddffd70096a8d72e5c21e3d3601ffe94579b673f4d59922b6a3025f79eb42fca7a28183055bb5d743fab61d835a3bf72c6fe088194523607863e5935  django-widget-tweaks-1.4.12.tar.gz
"
